package datatypes.film;

import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;

public class filmRoles {
	List<filmRole> film_roles;

	public filmRoles() {
		this.film_roles = new LinkedList<filmRole>();
	}

	public filmRoles(filmRole film_role) {
		this.film_roles = new LinkedList<filmRole>();
		this.film_roles.add(film_role);
	}

	public void addFilmRole(filmRole film_role) {
		this.film_roles.add(film_role);
	}

	public List<filmRole> getFilm_roles() {
		return film_roles;
	}

	public void setFilm_roles(List<filmRole> film_roles) {
		this.film_roles = film_roles;
	}

	public filmRole getFilmRole(String filmRoleId) {
		for (filmRole role : film_roles) {
			if (role.getId().equals(filmRoleId)) {
				return role;
			}
		}

		return null;
	}
	
	
}
